When a file is used as an iterator, typically in a for loop (for example, for line in f: print line), the next() ... File objects also offer a number of other interesting attributes. These are not required for file-like objects, but should be implemented